package com.jumi.microservice.constant;

import com.jumi.microservice.common.base.dto.AbstractEnum;

/**
 * @author Dirk
 * @Date 2020-07-20 14:02
 */
public enum PayChannelEnum implements AbstractEnum<Byte> {
    /**
     * 支付渠道
     */
    NO_PAY(0, "未支付"),
    ALI_PAY(1, "支付宝支付"),
    WX_PAY(2, "微信支付"),
    BALANCE_PAY(3, "余额支付"),
    UNION_PAY(4, "聚合支付"),
    ALI_PAY_H5(5, "支付宝H5支付"),
    WX_PAY_H5(6, "微信H5支付"),
    WX_PAY_LETS(7, "微信小程序支付");
    private Byte code;

    private String description;

    PayChannelEnum(Integer code, String description) {
        this.code = code.byteValue();
        this.description = description;
    }

    @Override
    public Byte getCode() {
        return code;
    }

    public void setCode(Byte code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
